/**
 * @author Jerome Monceaux
 * @version 1.0
 * 
 * HHMotor allow to handle motor generically
 **/
package org.hh.locodo;

import ioio.lib.api.exception.ConnectionLostException;


public interface MotorInterface {

	/** 
	 * Return the current encoder value. 
	 */ 
  int getEncoderValue();

  /**
   * Set the current speed to motor.
   */ 
  void setSpeed(double speed);

  /** 
   * Update callback. On each cycle ODOLocomotion or ODOLocomotionSingle
   * callback this method back.
   * @throws ConnectionLostException 
   */ 
  void update() throws ConnectionLostException;

}
